<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>${param.pageTitle }</title>
		<jsp:include page="../../../inc/js.jsp"></jsp:include>
		<jsp:include page="../../../inc/css.jsp"></jsp:include>
		<script type="text/javascript">
	function movePage(pageNo) {
		window.location = '?pageNo=' + pageNo + param();
	}
	function param() {
		var param = "";
		if ($("#workYear").val() != "")
			param += '&workYear=' + $("#workYear").val();
		if ($("#realName").val() != "")
			param += '&realName=' + $("#realName").val();
		if ($("#sex").val() != "")
			param += '&sex=' + $("#sex").val();
		if ($("#degree").val() != "")
			param += '&degree=' + $("#degree").val();
		return param;
	}
	$(document).ready(function() {
		$.get("getSelect.do", {
			type : '2',
			index : '${param.sex}'
		}, function(data) {
			$("select#sex").append(data);
		});
		$.get("getSelect.do", {
			type : '3',
			index : '${param.degree}'
		}, function(data) {
			$("select#degree").append(data);
		});
		//$.get("getSelect.do",{type:'gz',index:'${param.workType}'}, function(data){$("select#workYear").append(data);});
			$("#search").button().click(function() {
				movePage(1);
			});
		});
</script>
	</head>
	<body>
		<jsp:include page="../../../head.jsp"></jsp:include>
		<div class="container">
			<div class="header"></div>
			<div class="mainContent">
				<div class="content">
					<table class="list" cellpadding="0" cellspacing="1">
						<thead>
							<tr>
								<td colspan="7" class="search">
									<label>
										姓名：
									</label>
									<input id="realName" value="${param.realName }" class="name">
									<label>
										工作年限：
									</label>
									<input id="workYear" name="workYear" style="width: 30px;"
										value="${param.workYear }" />
									<label>
										性别：
									</label>
									<select id="sex" name="sex">
										<option value="">
											不限制
										</option>
									</select>
									<label>
										学历：
									</label>
									<select id="degree" name="degree">
										<option value="">
											不限制
										</option>
									</select>
									<button id="search">
										查询
									</button>
								</td>
							</tr>
							<tr>
								<td>
									序号
								</td>
								<td>
									姓名
								</td>
								<td>
									年龄
								</td>
								<td>
									性别
								</td>
								<td>
									学历
								</td>
								<td>
									专业
								</td>
								<td>
									工作年限
								</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="e" items="${o.dataList}" varStatus="s">
								<tr>
									<th>
										${s.index+1 }
									</th>
									<td>
										<a href="showUser.do?id=${e.id }" target="_blank">${e.realName}</a>
									</td>
									<td>
										${e.age }
									</td>
									<td>
										${e.sex }
									</td>
									<td>
										${e.degree }
									</td>
									<td>
										${e.major }
									</td>
									<td align="center">
										${e.workYear }
									</td>
								</tr>
							</c:forEach>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="7">
									${o.pageNav }
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
				<div class="sidebar">
					<jsp:include page="../../../advRight.jsp"></jsp:include></div>
			</div>
			<div class="footer"><jsp:include page="../../../foot.jsp"></jsp:include></div>
		</div>
	</body>
</html>